package com.avic.tools.utils;

import java.util.List;
import java.util.Map;

/**
 * 描述一个Excel工作簿其中的一个工作表的实体类
 */
public class ExcelBean {
    /*
    工作表名
     */
    private String sheetname = null;
    /*
    表格标题
     */
    private Map<Integer, Object> columntitle = null;
    /*
    表格主体部分
     */
    private List<Map<Integer, Object>> rows = null;

    public ExcelBean() {

    }

    public ExcelBean(String sheetname, Map<Integer, Object> columntitle, List<Map<Integer, Object>> row) {
        this.sheetname = sheetname;
        this.columntitle = columntitle;
        this.rows = row;
    }

    public String getSheetname() {
        return sheetname;
    }

    public void setSheetname(String sheetname) {
        this.sheetname = sheetname;
    }

    public Map<Integer, Object> getColumntitle() {
        return columntitle;
    }

    public void setColumntitle(Map<Integer, Object> columntitle) {

        this.columntitle = columntitle;
    }

    public List<Map<Integer, Object>> getRows() {

        return rows;
    }

    public void setRows(List<Map<Integer, Object>> rows) {

        this.rows = rows;
    }

    @Override
    public String toString() {
        return "ExcelBean{" +
                "sheetname='" + sheetname + '\'' +
                ", columntitle=" + columntitle +
                ", rows=" + rows +
                '}';
    }
}